package org.xzx.cloud.dao;

import org.springframework.data.jpa.repository.JpaRepository;
import org.xzx.cloud.entity.RolePathMapping;


public interface RolePathMappingRepository extends JpaRepository<RolePathMapping, Integer> {
    /**
     * 根据 角色id + 路径id 寻找数据记录
     *
     * @param roleId
     * @param pathId
     * @return
     */
    RolePathMapping findByRoleIdAndPathId(Integer roleId, Integer pathId);
}
